package com.landscope.issue.bean;


public enum E_PERMISSION_TYPE {
    //stad_en (台站信息展示权限) jcad_en（监测信息展示权限） vbad_en（报告查看权限）xcad_en（巡查采集权限）verify_en（审核权限）',
    stad_en(1, "台站信息展示权限"),
    jcad_en(2, "监测信息展示权限"),
    vbad_en(3, "报告查看权限"),
    xcad_en(4, "巡查采集权限"),
    verify_en(5, "审核权限"),
    ;
    private Integer value;
    private String name;

    E_PERMISSION_TYPE(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public static E_PERMISSION_TYPE newValueOf(Integer value) {
        if (value == null) {
            return null;
        }
        for (E_PERMISSION_TYPE status : E_PERMISSION_TYPE.values()) {
            if (status.getValue().equals(value)) {
                return status;
            }
        }
        throw new IllegalArgumentException("No enum new value " + value);
    }

    public static void main(String[] args) {
        System.out.println(E_PERMISSION_TYPE.jcad_en.toString());
    }
}
